<?php

class Exception_handler {
	
	static private $instance;
	  
   	private function __construct() {
   	}
   	
    // The singleton method
    public static function singleton() 
    {
        if (!isset(self::$instance)) {
            $c = __CLASS__;
            self::$instance = new $c;
        }

        return self::$instance;
    }
    
    public function handler ($error) {
    	echo $error;
    }
}


?>